import pytest
from log_mail import log_set,send_mail
if __name__ == '__main__':
    log_set()  #采集日志
    pytest.main(["-s","testcase1.py","--alluredir=ReportData","--clean-alluredir"])
    send_mail(["log.txt"])  #发送邮件
    import os
    os.system("allure generate ReportData -o baogao --clean")
